<!DOCTYPE html>
<html lang="en">
  <head><meta name="generator" content="Hexo 3.9.0">
    <meta charset="utf-8">

    <title>easy java document | easy-java </title>
    <meta name="description" content>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    

    <!-- fonts -->
    <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Ubuntu:300,400,500,600,700" rel="stylesheet">

    <!-- stylesheets -->
    <link rel="stylesheet" href="/ejdoc/style/doc.css">

    <!-- favicon -->
    <link rel="icon" href="/ejdoc/images/favicon.ico">

    

  </head>
  <body>

   <script>window.__INITIAL_STATE__ = {"page":{"title":"easy-java","path":"log-20200517.html"},"data":{"navigation":{"logo":{"text":"Easy Java","type":"link","path":"index.html"},"main":[{"text":"工作流与业务流集合","type":"link","path":"wf3.html"},{"text":"一对多关联V2.0","type":"link","path":"o2m.html"}]},"navigation.yaml":"{\n  \"logo\": {\n    \"text\": \"Easy Java\",\n    \"type\": \"link\",\n    \"path\": \"index.html\"\n  },\n  \"main\": [\n    {\n        \"text\": \"如何让你的项目快人N步?\",\n        \"type\": \"link\",\n        \"path\": \"index.html\"\n    },\n    {\n        \"text\": \"起步（从无到有）\",\n        \"type\": \"link\",\n        \"path\": \"build-code.html\"\n    },\n    {\n        \"text\": \"项目演示地址\",\n        \"type\": \"link\",\n        \"path\": \"show.html\"\n    },\n    {\n        \"text\": \"安装\",\n        \"type\": \"link\",\n        \"path\": \"install.html\"\n    },\n    {\n        \"text\": \"功能介绍\",\n        \"type\": \"link\",\n        \"path\": \"function1.html\"\n    },\n    {\n        \"text\": \"动态工作流-内置表单\",\n        \"type\": \"link\",\n        \"path\": \"workflow1.html\"\n    },\n    {\n        \"text\": \"动态工作流-外置表单\",\n        \"type\": \"link\",\n        \"path\": \"workflow2.html\"\n    },\n    {\n        \"text\": \"分布式定时任务\",\n        \"type\": \"link\",\n        \"path\": \"timer.html\"\n    },\n    {\n        \"text\": \"升级日志\",\n        \"type\": \"link\",\n        \"path\": \"log-20200517.html\"\n    },\n    {\n        \"text\": \"计划\",\n        \"type\": \"link\",\n        \"path\": \"future.html\"\n    },\n    {\n        \"text\": \"有Bug及时发我完善\",\n        \"type\": \"label\"\n    }\n  ]\n}\n"},"config":{"timezone":"UTC","root":"/ejdoc/","time_format":"HH:mm:ss","theme":"../node_modules/hexo-theme-doc","theme_config":{"swagger_ui":{"version":2,"permalinks":true,"api_explorer":true,"download":"Download specification","show_extensions":false,"deep_linking":true,"display_operation_id":false,"doc_expansion":"none"},"search":{"skip":false,"background":false,"route":"/lunr.json"},"favicon":"images/favicon.ico"}}}</script>

    <div id="react-navigation-root"><div class="doc-navigation" data-reactroot><nav class="doc-navbar"><a href="/ejdoc/index.html" class="doc-navbar__logo"><img src="/ejdoc/images/logo.png" class="doc-navbar__logo__img"><span class="doc-navbar__logo__text">Easy Java</span></a><i class="dc-icon dc-icon--close dc-icon--interactive doc-sidebar-close doc-navbar__sidebar-close doc-navbar__sidebar-close--desktop"></i><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-navbar__sidebar-toggle"></i></nav><nav class="doc-sidebar"><div class="doc-sidebar__vertical-menu"><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-sidebar-toggle--primary doc-sidebar__vertical-menu__item"></i><i class="dc-icon dc-icon--search dc-icon--interactive doc-sidebar__vertical-menu__item doc-sidebar__vertical-menu__item--primary"></i></div><div class="doc-sidebar-content"><div class="doc-sidebar__search-form"></div><ul class="doc-sidebar-list"></ul></div></nav></div></div>
    <div class="doc-content">
  <div class="dc-page">
    <div class="dc-card">
      <div id="react-search-results-root"></div>
      <div id="page-content" class="doc-formatting">
        <h2 id="2020-5-17"><a href="#2020-5-17" class="headerlink" title="2020.5.17"></a>2020.5.17</h2><pre><code>1, 你是否曾因项目发布后，手动在生产系统菜单中，一项项增加菜单功能而烦劳？
解决方案：动态路由 + 发布
a, 原静态路由，修改成动态路由，数据库配置显示菜单；
b, 菜单管理页面是树型表结构，可拖拽行，实现调整主菜单位置和排序；
c, 增加发布功能，可复制树节点的json数据，在生产系统目标菜单中，粘贴发布，实现批量菜单录入。
</code></pre><p><img src="./images/menu.gif" width="1000"></p>
<pre><code>2，优化一对多源码生成功能，无需程序员介入可实现：
如：点击部门列表后的，员工列表按钮，会自动传相应部门Id给员工列表进行查询。
</code></pre><p><img src="./images/o2m-dept-user.gif" width="1000"></p>
<p>升级日期：2020.5.17<br>升级条件：需升级数据库，<a href="db/easyjava-20200517.sql">sql脚本-2020.05.17</a></p>
<h2 id="2020-5-20"><a href="#2020-5-20" class="headerlink" title="2020.5.20"></a>2020.5.20</h2><pre><code>在Vue中集成Activiti网页设计器，为动态工作流研发作准备工作
</code></pre><p><img src="./images/wf1.png" width="1000"><br><img src="./images/wf2.png" width="1000"></p>
<pre><code>升级日期：2020.5.20
升级条件：
1，增加菜单项; 依次点击：基础数据管理/菜单管理/批量发布一级菜单，输入以下json，创建“工作流设计器”目录
2，在安装菜单下，补充了数据库工作流sql脚本下载安装
</code></pre><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">  &quot;auth&quot;: &quot;&quot;,</span><br><span class="line">  &quot;label&quot;: &quot;工作流管理&quot;,</span><br><span class="line">  &quot;nameEn&quot;: &quot;&quot;,</span><br><span class="line">  &quot;sort&quot;: 4,</span><br><span class="line">  &quot;type&quot;: 0,</span><br><span class="line">  &quot;url&quot;: &quot;&quot;,</span><br><span class="line">  &quot;children&quot;: [</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;auth&quot;: &quot;&quot;,</span><br><span class="line">      &quot;name&quot;: &quot;工作流设计器&quot;,</span><br><span class="line">      &quot;keyRandom&quot;: &quot;&quot;,</span><br><span class="line">      &quot;attributes&quot;: &#123;</span><br><span class="line">        &quot;type&quot;: 0,</span><br><span class="line">        &quot;url&quot;: &quot;tmpt/activiti/index&quot;,</span><br><span class="line">        &quot;hasDataLimit&quot;: 0</span><br><span class="line">      &#125;,</span><br><span class="line">      &quot;id&quot;: 4055,</span><br><span class="line">      &quot;label&quot;: &quot;工作流设计器&quot;,</span><br><span class="line">      &quot;nameEn&quot;: &quot;ActivitiModeler&quot;,</span><br><span class="line">      &quot;sort&quot;: 0,</span><br><span class="line">      &quot;type&quot;: 0,</span><br><span class="line">      &quot;menuParentId&quot;: 4054,</span><br><span class="line">      &quot;url&quot;: &quot;tmpt/activiti/index&quot;,</span><br><span class="line">      &quot;hasDataLimit&quot;: 0</span><br><span class="line">    &#125;</span><br><span class="line">  ],</span><br><span class="line">  &quot;name&quot;: &quot;工作流管理&quot;,</span><br><span class="line">  &quot;keyRandom&quot;: &quot;&quot;,</span><br><span class="line">  &quot;attributes&quot;: &#123;</span><br><span class="line">    &quot;type&quot;: 0,</span><br><span class="line">    &quot;url&quot;: &quot;&quot;,</span><br><span class="line">    &quot;hasDataLimit&quot;: 0</span><br><span class="line">  &#125;,</span><br><span class="line">  &quot;id&quot;: 4054,</span><br><span class="line">  &quot;menuParentId&quot;: 0,</span><br><span class="line">  &quot;hasDataLimit&quot;: 0,</span><br><span class="line">  &quot;open&quot;: false</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h2 id="2020-6-3"><a href="#2020-6-3" class="headerlink" title="2020.6.3"></a>2020.6.3</h2><pre><code>问题：源码生成路径，是写死在配置文件easyjava/core/resource/config.properties中，因每个人的项目路径不一样，这样就不方便团队合作了，如下所示。
</code></pre><pre><code class="bash">mybatis-plus.generator.path= D:\\workspace2019\\gitee\\easyjava
mybatis-plus.generator.vue.path= D:\\workspace2019\\gitee\\vue-ej\\src
mybatis-plus.generator.module= base
</code></pre>
<pre><code>解决方案：在开发都工具/用户页面设置菜单下，将上面3条记录，作为用户各自的配置信息添加到数据库里，系统优先读数据库配置执行。
name=mybatis-plus.generator.path, value=D:\\workspace2019\\gitee\\easyjava
name=mybatis-plus.generator.vue, value=D:\\workspace2019\\gitee\\vue-ej\\src
name=mybatis-plus.generator.module, value=base
</code></pre>
        <div id="react-support-footer-root"></div>
      </div>
    </div>
  </div>
</div>

    


    

    <!-- js vendors -->
    <script src="//code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/lunr.js/2.1.0/lunr.min.js"></script>

    <!-- js source  -->
    <script src="/ejdoc/script/doc.js"></script>

    

  </body>
</html>
